{include file="pub_header.htm"}

{include file="pub_search.htm"}

<div class="layout_place">
  <div class="place_current">
    <ul>
      <li><a href="{$lang.s._public.global.weburl}" target="_self">{$lang.s._public.global.website}</a></li>
      {foreach name=channel_path from=$channel_path item=item}
      <li><span>&#187;<span></li>
      <li><a href="{$control_index}?act=channel&channel_id={$item.id}" target="_self">{$item.name|str_entag:'space,br'}</a></li>
      {/foreach}
    </ul>
  </div>
</div>

<div class="layout_content">
  <div class="content_one_left">
    <div class="box_one_list">
      <div class="title">
        <h2>{$channel_info.name}</h2>
      </div>
      {return_content_list channel_id=$channel_info.id item=content_list rank='1'}
      {foreach name=content_list from=$content_list item=item}
      <div class="partners">
        <dl>
          {if $dir_content_cover|is_file:"`$item.cover_dir``$item.cover_filename`" == "1"}
          <dt><a href="{$item.if_turn_url}" target="_blank"><img src="{$dir_content_cover}/{$item.cover_dir}{$item.cover_filename}" width="88" height="31" border="0" title="{$item.subject}" /></a></dt>
          {else}
          <dt><a href="{$item.if_turn_url}" target="_blank">{$item.subject}</a></dt>
          {/if}
          <dd class="current">{$item.brief}</dd>
        </dl>
      </div>
      {/foreach}
    </div>
  </div>
  <div class="content_one_right">
    {return_channel_list upper_id=$channel_path.0.id if_enable="1" if_show="1" item=menu_sub}
    {if $menu_sub|@is_array && $menu_sub|@count > 0}
    <div class="box_one_sub">
      <div class="title">
        <h2>下属分类</h2>
        <span></span>
      </div>
      <div class="content">
        <ul>
        {foreach name=menu_sub from=$menu_sub item=item}
          {if $item.if_turn == "1"}
            {if $item.if_turn_type == "1"}
            <li {if $item.id == $channel_path.1.id}class="current"{/if}><a href="{$item.if_turn_url}" target="_self">{$item.name}</a></li>
            {elseif $item.if_turn_type == "2"}
            <li {if $item.id == $channel_path.1.id}class="current"{/if}><a href="{$item.if_turn_url}" target="_blank">{$item.name}</a></li>
            {else}
            <li {if $item.id == $channel_path.1.id}class="current"{/if}><a href="{$item.if_turn_url}" target="_blank">{$item.name}</a></li>
            {/if}
          {else}
            <li {if $item.id == $channel_path.1.id}class="current"{/if}><a href="{$control_index}?act=channel&channel_id={$item.id}" target="_self">{$item.name}</a></li>
          {/if}
        {/foreach}
        </ul>
      </div>
      <div class="footer"><span></span></div>
    </div>
    {/if}
    <div class="box_one_rank">
      <div class="title">
        <h2>热门推荐</h2>
        <span></span>
      </div>
      <div class="content">
        <ul>
        {return_content_list channel_id="12,13,16,17,18" prefix="20" limit="8" item=hot}
        {foreach name=hot from=$hot item=item}
          <li><a href="{$control_index}?act=content&scheduler_id={$item.scheduler_id}" title="{$item.subject}" target="_blank">{$item.phrase|str_cut:0:26}</a></li>
        {/foreach}
        </ul>
      </div>
      <div class="middletitle">
        <h2>点击排行</h2>
        <span></span>
      </div>
      <div class="content">
        <ul>
        {return_content_list channel_id="12,13,16,17,18" click="1" limit="8" item=click}
        {foreach name=click from=$click item=item}
          <li><a href="{$control_index}?act=content&scheduler_id={$item.scheduler_id}" title="{$item.subject}" target="_blank">{$item.phrase|str_cut:0:26}</a></li>
        {/foreach}
        </ul>
      </div>
      <div class="footer"><span></span></div>
    </div>
  </div>
</div>

{include file="pub_footer.htm"}
